{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "7fb336d8",
   "metadata": {},
   "source": [
    "# 课堂笔记1-3周概览\n",
    "\n",
    "## 课程准备---软件安装，下载，配置\n",
    "* 下载anaconda，并学会配置环境，验证下载成功，资源：清华镜像网，最新版下载win\n",
    "* 下载pycharm专业版,要激活（学生包，激活码，永久激活）\n",
    "* 用jupyter notebook写第一行代码,安装插件（QQ群里有资源）\n",
    "* jpyter notebook 快捷键\n",
    "---\n",
    ">> 进入命令模式之后（此时你没有活跃单元），你可以尝试以下快捷键：\n",
    "* A 会在活跃单元之上插入一个新的单元，B 会在活跃单元之下插入一个新单元。\n",
    "* 连续按两次 D，可以删除一个单元。\n",
    "* 撤销被删除的单元，按 Z。\n",
    "* Y 会将当前活跃的单元变成一个代码单元。\n",
    "* 按住 Shift +上或下箭头可选择多个单元。在多选模式时，按住 Shift + M 可合并你的选择。\n",
    "* 按 F 会弹出「查找和替换」菜单。\n",
    "---\n",
    ">> 处于编辑模式时（在命令模式时按 Enter 会进入编辑模式），你会发现下列快捷键很有用：\n",
    "* Ctrl + Home 到达单元起始位置。\n",
    "* Ctrl + S 保存进度。\n",
    "* 如之前提到的，Ctrl + Enter 会运行你的整个单元块。\n",
    "* Alt + Enter 不止会运行你的单元块，还会在下面添加一个新单元。\n",
    "* Ctrl + Shift + F 打开命令面板。\n",
    "\n",
    "___\n",
    "\n",
    "## 课程资源\n",
    "\n",
    "* python.org(官网)\n",
    "* head first python \n",
    "* 老师博客园：cnblogs.com/xuzhichao\n",
    "* 老师邮箱：576726974@qq.com、zhichao.x@outlook.com\n",
    "* github:  https://github.com/xuzhichao00504\n",
    "* 学习通\n",
    "* QQ群\n",
    "* 老师解答时间：新综6楼，周四14点到17点\n",
    "\n",
    "\n",
    "## python\n",
    "\n",
    "< python是一门动态解释型的强类型定义语言 >\n",
    "* 标准库是什么？ =函数+模块\n",
    "* 开源模块（github等）\n",
    "* 自定义模块\n",
    "* 两个开发环境(1.LDE;2.\n",
    "\n",
    "* 代码模块提前雨欣\n",
    " print，for循环,if，else，range方法，datetime，import\n",
    "## 数字，字符串的概念\n",
    "\n",
    "* [数字 概念](https://docs.python.org/3/tutorial/introduction.html#numbers)\n",
    "> [数字 方法](https://docs.python.org/3/library/stdtypes.html#numeric-types-int-float-complex)     \n",
    ">> There are three distinct numeric types: integers, floating point numbers, and complex numbers. In addition, Booleans are a subtype of integers. Integers have unlimited precision. Floating point numbers are usually implemented using double in C; information about the precision and internal representation of floating point numbers for the machine on which your program is running is available in sys.float_info. Complex numbers have a real and imaginary part, which are each a floating point number. To extract these parts from a complex number z, use z.real and z.imag. (The standard library includes the additional numeric types fractions.Fraction, for rationals, and decimal.Decimal, for floating-point numbers with user-definable precision.)  \n",
    ">> example:\n",
    ">>> [to_bytes](https://docs.python.org/3/library/stdtypes.html#int.to_bytes)     \n",
    ">>> [is_integer](https://docs.python.org/3/library/stdtypes.html#float.is_integer)    \n",
    ">>> ...\n",
    "\n",
    "* [字符串 概念](https://docs.python.org/3/tutorial/introduction.html#strings)\n",
    "> [字符串方法 String Methods](https://docs.python.org/3/library/stdtypes.html#text-sequence-type-str)\n",
    ">> Strings implement all of the common sequence operations, along with the additional methods described below.\n",
    "Strings also support two styles of string formatting, one providing a large degree of flexibility and customization (see str.format(), Format String Syntax and Custom String Formatting) and the other based on C printf style formatting that handles a narrower range of types and is slightly harder to use correctly, but is often faster for the cases it can handle (printf-style String Formatting).\n",
    ">> example: \n",
    ">>> [count方法](https://docs.python.org/3/library/stdtypes.html#str.count)   \n",
    ">>> [find方法](https://docs.python.org/3/library/stdtypes.html#str.find)   \n",
    ">>> [isdigit方法](https://docs.python.org/3/library/stdtypes.html#str.isdigit)    \n",
    ">>> ...\n",
    "\n",
    "# 几个常用模块\n",
    "\n",
    "### 常见的几个模块的使用\n",
    "\n",
    "* datetime \n",
    "* time\n",
    "* help() \n",
    "* [range()函数的使用](https://docs.python.org/3/tutorial/controlflow.html#the-range-function) ***重点*** [range源代码](https://docs.python.org/3/library/stdtypes.html#range)\n",
    "* random 模块的使用 ***重点***\n",
    "-----------\n",
    "\n",
    "\n",
    "###  if else 循环嵌套的使用 \n",
    "\n",
    "* [if教程及案例学习](https://docs.python.org/3/tutorial/controlflow.html#if-statements)\n",
    "* 多层嵌套 \n",
    "```\n",
    "if 条件:\n",
    "      if-语句块\n",
    "   \n",
    "   if 条件:\n",
    "      if-语句块\n",
    "   else:\n",
    "      else-语句块\n",
    "   \n",
    "   if 条件：\n",
    "      if-语句块\n",
    "   elif 条件:\n",
    "      elif-语句块\n",
    "   ...\n",
    "   else:\n",
    "      else-语句块\n",
    "   可以进行嵌套。 不要超过3层， 最多5层\n",
    "```\n",
    "\n",
    "\n",
    "-----------\n",
    "\n",
    "###  for 循环 配合 内置函数range()的使用\n",
    "\n",
    "* [for教程及案例学习](https://docs.python.org/3/tutorial/controlflow.html#for-statements)\n",
    "\n",
    "-----------\n",
    "\n",
    "\n",
    "## if 和elif 的区别\n",
    "\n",
    "* a = 10if a == 10:____print \"尼玛\"elif a > 1:____print \"你大爷\"else:____print …print \"end\"运行结果：尼玛end\n",
    "* a = 10if a == 10：____print \"尼玛\"if a > 1:____print \"你大爷\"____print \"end\"运行结果：尼玛你大爷end\n",
    "\n",
    "作者：一一二一\n",
    "链接：https://www.zhihu.com/question/52213208/answer/130972103\n",
    "来源：知乎\n",
    "\n",
    "---\n",
    " \n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "1cbbece5",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "11a54e91",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "122ce450",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": true
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
